<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/IncludeTop.jsp" %>  
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/moniterRuqiushu.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<table width="100%" border="1">
		<tr>
			<th align="center" width="4%">
				联赛
			</th>
			<th align="center" width="8%">
				时间
			</th>
			<th align="center" width="20%">
				主客队伍
			</th>
			
			<th align="center" >1x2</th>
			<th align="center" >单</th>
			<th align="center" >双</th>
			<th align="center" >0-1</th>
			<th align="center" >2-3</th>
			<th align="center" >4-6</th>
			<th align="center" >七或以上</th>
			
			<th align="center">操作</th>
		</tr>
		
		<c:forEach var="event" items="${events}" >
		<c:set var="map" value="${requestScope.counter[event.id]}" />
		<tr id="<c:out value="${event.comp.id}"/>">
			<td align="center">
				<c:out value="${event.comp.league.name_zh}" />
			</td>
			<td align="center">
				<fmt:formatDate value="${event.comp.time}" type="both" />
			</td>
			<td>
				<table>
					<tr>
						<td>
							<c:out value="${event.comp.home.name_zh}"></c:out>[主]
							<br/>
							<c:out value="${event.comp.road.name_zh}"></c:out>
						</td>
					</tr>
					<tr>
						<td>
							和局
						</td>
					</tr>
				</table>
			</td>
			<td align="center">
				<table>
					<tr>
						<td align="center">
							<input type="text" name="duyingHalf.win" size="5" value="<c:out value="${event.duyingHalf.win}" />" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dy_half_win">
									<c:out value="${map['dy_half_win']}" />/<c:out value="${map['sdy_half_win']}"/>
								</a>
							</font>
							<input type="text" name="duyingHalf.lose"  size="5" value="<c:out value="${event.duyingHalf.lose}" />" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dy_half_lose">
									<c:out value="${map['dy_half_lose']}" />/<c:out value="${map['sdy_half_lose']}"/>
								</a>
							</font>
						</td>
					</tr>
					<tr>
						<td align="center">
							<input type="text" name="duyingHalf.draw"  size="5" value="<c:out value="${event.duyingHalf.lose}" />" />
							<font color="red" size="-1">
								<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=dy_half_draw">
									<c:out value="${map['dy_half_draw']}" />/<c:out value="${map['sdy_half_draw']}"/>
								</a>
							</font>
						</td>
					</tr>
				</table>
			</td>
			<td align="center">
				<input type="text" name="danshuang.odd" size="7" value="<c:out value="${event.danshuang.odd}" />" />
				<br />
				<font color="red" size="-1">
					<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=ds_odd">
						<c:out value="${map['ds_odd']}" />/<c:out value="${map['sds_odd']}"/>
					</a>
				</font>
			</td>
			<td align="center">
				<input type="text" name="danshuang.even" size="7" value="<c:out value="${event.danshuang.even}" />" />
				<br />
				<font color="red" size="-1">
					<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=ds_even">
						<c:out value="${map['ds_even']}" />/<c:out value="${map['sds_even']}"/>
					</a>
				</font>
			</td>
			<td align="center">
				<input type="text" name="ruqiushu.s01" size="7" value="<c:out value="${event.ruqiushu.s01}" />" />
				<br />
				<font color="red" size="-1">
					<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rqs_01">
						<c:out value="${map['rqs_01']}" />/<c:out value="${map['srqs_01']}"/>
					</a>
				</font>
			</td>
			<td align="center">
				<input type="text" name="ruqiushu.s23" size="7" value="<c:out value="${event.ruqiushu.s23}" />" />
				<br />
				<font color="red" size="-1">
					<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rqs_23">
						<c:out value="${map['rqs_23']}" />/<c:out value="${map['srqs_23']}"/>
					</a>
				</font>
			</td>
			<td align="center">
				<input type="text" name="ruqiushu.s46" size="7" value="<c:out value="${event.ruqiushu.s46}" />" />
				<br />
				<font color="red" size="-1">
					<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rqs_46">
						<c:out value="${map['rqs_46']}" />/<c:out value="${map['srqs_46']}"/>
					</a>
				</font>
			</td>
			<td align="center">
				<input type="text" name="ruqiushu.sup7" size="7" value="<c:out value="${event.ruqiushu.sup7}" />" />
				<br />
				<font color="red" size="-1">
					<a href="mgr/listOrders.do?eventid=<c:out value="${event.id }"/>&oddType=rqs_7">
						<c:out value="${map['rqs_7']}" />/<c:out value="${map['srqs_7']}"/>
					</a>
				</font>
			</td>
			<td align="center">
				<input type="button" value="提交" name="submit" onclick="clickSubmit(this)" />
			</td>
		</tr>
		</c:forEach>
	</table>
	<%@ include file="/WEB-INF/jsp/pager.jsp"%>
</body>
</html>